package com.dbq.fast.common.net.mock.mockApi;

import com.dbq.fast.common.net.mock.MockInterface;
import com.dbq.fast.common.net.mock.MockRouter;

/**
 * Created by yuanchen on 2018/5/7.
 */

public class MockQueryWithdraw implements MockInterface {

    public static final String URL = MockRouter.BASE_URL + "/mock/queryWithdraw";

    @Override
    public byte[] getResponse(String url) {
        String result = "{\n" +
                "\"code\":200,\n" +
                "\"msg\":\"\",\n" +
                "\"data\":{\n" +
                "\"totalMoney\":\"48\",\n" +
                "\"wxAccount\":\"八戒\",\n" +
                "\"curPage\":1,\n" +
                "\"totalPage\":1,\n" +
                "\"withdraw\":[\n" +
                "{\n" +
                "\"id\":\"888888\",\n" +
                "\"time\":\"2018-05-04\",\n" +
                "\"money\":\"¥30\",\n" +
                "\"status\":1\n" +
                "},\n" +
                "{\n" +
                "\"id\":\"999999\",\n" +
                "\"time\":\"2018-05-04\",\n" +
                "\"money\":\"¥18\",\n" +
                "\"status\":0\n" +
                "}\n" +
                "]\n" +
                "}\n" +
                "}";
        return result.getBytes();
    }

}
